package P2POperational;

/**
 *  Created with IntelliJ IDEA.
 *  Authors: Henrique Alberto Rusa and Danilo Barbosa Porto
 *  Date: 04/11/13
 *
 *  This class creates the central server of the cluster.
 *  It allocates the localOperational and the ConnectionHandler for this distributed system file.
 */
public class CentralNode {

    // Instances for the layer of connection and handle files
    LocalOperational operational;

    public CentralNode(String hostName, String path){

        // allocating memory to parameters
        operational = new LocalOperational("Central", hostName);

        // link connection layer with localOperational and start them both.
        new Thread(operational).start();
    }
}
